Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPIK-493] Fix Redis setup to properly config database indexes #779

Merged

Conversation

thiagohora
Copy link
Contributor

Details

The database index in the Redis URL was ignored since Redisson requires it to be defined at the Config class level.

Issues

OPIK-493

@thiagohora thiagohora requested a review from a team as a code owner December 2, 2024 09:44
@thiagohora thiagohora self-assigned this Dec 2, 2024
import java.net.URI;
import java.net.URISyntaxException;

public record RedisUrlParser(String scheme, String host, int port, int database) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need all these params? They are never used apart from tests. Only database is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because a dto with only the database index is not reusable

idoberko2
idoberko2 previously approved these changes Dec 2, 2024
Copy link
Contributor

@idoberko2 idoberko2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

@thiagohora thiagohora force-pushed the thiagohora/OPIK-493_fix_redis_setup_to_properly_config branch from 85195d7 to a1bf279 Compare December 2, 2024 10:51
@thiagohora thiagohora requested a review from idoberko2 December 2, 2024 10:54
idoberko2
idoberko2 previously approved these changes Dec 2, 2024
@thiagohora thiagohora force-pushed the thiagohora/OPIK-493_fix_redis_setup_to_properly_config branch from 649280f to 7d00654 Compare December 2, 2024 11:15
@thiagohora thiagohora requested a review from idoberko2 December 2, 2024 11:16
@thiagohora thiagohora merged commit 217cfee into main Dec 2, 2024
7 checks passed
@thiagohora thiagohora deleted the thiagohora/OPIK-493_fix_redis_setup_to_properly_config branch December 2, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants